// components/index-comps/index-comps.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    list: Object,
    titleData: Object
  },

  /**
   * 组件的初始数据
   */
  data: {
    currentList: []
  },

  /**
   * 组件的方法列表
   */



  methods: {
    goTomMoreNovels() {

      console.log(this.properties.list);
      
      let reg = /[0-9]+$/
      let id = reg.exec(this.properties.list[1].header.action) ? reg.exec(this.properties.list[1].header.action)[0] : reg.exec(this.properties.list[1].header.action)
      if (id || id == 0) {
        wx.navigateTo({
          url: `../../pages/morenovels/morenovels?text=${this.properties.list[1].header.text}&&id=` + reg.exec(this.properties.list[1].header.action)[0],
        })
      }


    }
  },


})
